export function throttle(func, stamp=1000) {
  let timer = null;
  return function() {
    if(timer) return ;
    timer = setTimeout(() => {
      func.apply(this, arguments);
      timer = null;
    }, stamp);
  }
}